package com.javaee.spring.chineseIdol;

public class RidableJuggler extends Juggler {
	private Ridable ridable;

	public RidableJuggler(Ridable ridable) {
		super();
		this.ridable = ridable;
	}

	public RidableJuggler() {
		super();
	}

	public RidableJuggler(int balls) {
		super(balls);
	}
	
	public Ridable getRidable() {
		return ridable;
	}

	public void setRidable(Ridable ridable) {
		this.ridable = ridable;
	}

	public RidableJuggler(int balls,Ridable ridable) {
		super(balls);
		this.ridable = ridable;
	}

	@Override
	public void performer() throws PerformanceException {
		// TODO Auto-generated method stub
		super.performer();
		System.out.println("whiling rading...");
		ridable.ride();
	}
	
	
}
